export type DelAction = {
  type: 'DEL_TODO'
  payload: number
}
export type AddAction = {
  type: 'ADD_TODO'
  payload: string
}
export type upDateAction = {
  type: 'UPDATE_TODO'
  payload: number
}

// 导出action联合类型
export type allAction = DelAction | AddAction | upDateAction
